Skip to main content
guest
|
Join
|
Help
|
Sign In
guest
Join
|
Help
|
Sign In
schuchert
Home
Wiki Home
Recent Changes
Pages and Files
Members
My CV
C++ Training
New Stuff
FitNessse Tutorials
Experiential Learning
RubyNotes
EJB & JPA
Agile Courseware
Unpublished Articles
Tool Configuration
AOP
C# & OOP
Back to the Top
2daycpptddresources
Edit
0
9
…
0
Tags
No tags
Notify
RSS
Backlinks
Source
Print
Export (PDF)
This is a list of resources for a 2-day C++ class covering a rage of topics including:
Test Drive Development
Refactoring (Martin - Refactoring)
rename method
rename class
extract method
extract class
replace switch/conditional logic with polymorphism
encapsulate typecode
Legacy Refactoring (Feathers - Working Effectively with Legacy Code)
characterization tests
extract class
extract method
Design Patterns
strategy pattern
template method pattern
abstract factory pattern
Projects
RPN Calculator: Here's some source code for the
Rpn Calculator in C++
(RPN --> Reverse Polish Notation --> post-fix, think HP calculators)
Refactoring (with tests in place):
CalculateRates_clean_code.zip
Details
Download
3 KB
Refactoring (conditional logic to polymorphism):
CalculateRates_conditional_to_polymorphism.zip
Details
Download
3 KB
ReplaceSwitchWithPolymorphismDetailedRefactoringInstructions
Characterization Tests:
CalculateRates_characterization.zip
Details
Download
2 KB
After polymorphism applied:
CalculateRates_polymorphism_applied.zip
Details
Download
7 KB
Working in Visual Studio with this Files
Download zip file
Download CppUTest
Get it built in your version of visual studio
Create a new project (win 32 console), e.g. RpnCalculator, CleanCode, ReplaceConditionalWithPolymorphism, Characterization, PolymorphismSolved
Select solution and add existing project
Find your CppUTest solution folder and add the project file
Have your new project (RpnCalculator, CleanCode, etc.) depend on the CppUTest project
Update your new project's include directory to include the include directory of CppUTest
Find the zip file, open it and extract all of the files into the source directory of your project
Select your project and add existing, add all of the header and source files
Javascript Required
You need to enable Javascript in your browser to edit pages.
help on how to format text
Turn off "Getting Started"
Home
...
Loading...
Projects
Working in Visual Studio with this Files